<?php
include_once (SYSTEM.'/Controller.php');
include_once (MODEL.'/User.php');

class HomeController extends Controller
{
	public function Index()
	{
		$user = new User('1234567', '123');
		$this->ViewData['Class'] = 'CNPM-K51';		
		
		$errorMessages = $user->ValidateFields();
		
		print_r($errorMessages);
		//$this->Render('Index', '_Master', $user);
		//$this->RedirectToAction('Account', 'Index', $param);
		//$this->Redirect('http://www.google.com.vn');
	}
	
	public function Test() 
	{
		echo 'This is a test';	
	}
}